package com.by.component.importrecord;

import com.by.component.importrecord.dto.AddImportRecordSDTO;
import com.by.component.importrecord.dto.InfoImportRecordSDTO;
import com.by.component.importrecord.dto.ItemImportRecord4PageSDTO;
import com.by.toolkit.model.PageReq;
import com.by.toolkit.model.PageResp;

public interface ImportService {

    PageResp<ItemImportRecord4PageSDTO> queryPage(PageReq<ItemImportRecord4PageSDTO> req);

    void addImport(AddImportRecordSDTO dto);

    void processing(Long recordId);

    void processed(Long recordId, Long importCount, Long successCount, Long errorCount, String fileOssUrl);

    void failProcess(Long recordId, String failMsg);

    InfoImportRecordSDTO recordInfo(Long recordId);

    String importTemplateUrl(Integer importType);

}
